package com.hdit.guimei.service.impl;

import com.hdit.guimei.domain.Goods_detail;
import com.hdit.guimei.mapper.GoodsDetailMapper;
import com.hdit.guimei.service.GoodsDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @基本功能:
 * @ClassName: GoodsDetailServiceImpl
 * @Description: TODO
 * @Author: 李嘉明
 * @Date: 2021/1/20 17:38
 * @Version 1.0
 */
@Service
public class GoodsDetailServiceImpl implements GoodsDetailService {
    @Autowired
    private GoodsDetailMapper goodsDetailMapper;

    @Override
    /**
    * @Method: addGoodsDetail
    * @函数(方法)功能: 添加商品详情
    * @Author: 李嘉明
    * @params:  [goods_detail]
    * @Return: int
    * @Exception:
    * @Date: 2021/1/20 17:40
    */
    public int addGoodsDetail(Goods_detail goods_detail) {
        return goodsDetailMapper.addGoodsDetail(goods_detail);
    }

    @Override
    public int updateGoodsDetail(Goods_detail goods_detail) {
        return goodsDetailMapper.updateGoodsDetail(goods_detail);

    }
}
